package com.effectiv.gooruda.repository;

import java.util.List;

import org.springframework.data.mongodb.repository.MongoRepository;
import org.springframework.stereotype.Repository;
import com.effectiv.gooruda.domain.SocialProvider;
import com.effectiv.gooruda.domain.Tenant;


@Repository
public interface SocialProviderRepository extends MongoRepository<SocialProvider, String>{
	
	List<SocialProvider> findByTenantAndType(Tenant tenant, String type); 
	SocialProvider findByProviderKey(String key);
}
